//
//  WSChannelItem.h
//  CharonTVProject
//
//  Created by karong on 2023/7/31.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface WSItem : NSObject

@property (nonatomic, assign) NSInteger position_id;
///跳转链接
@property (nonatomic, strong) NSString * jump_url;
///跳转類型
@property (nonatomic, assign) NSInteger jump_type;
///標題
@property (nonatomic, strong) NSString * title;
///圖片
@property (nonatomic, strong) NSString * thumb;
///書籍id
@property (nonatomic, assign) NSInteger tv_id;

@end

@interface WSChannelItem : NSObject

///推荐位ID
@property (nonatomic, assign) NSInteger id;
///推荐位名稱
@property (nonatomic, strong) NSString * name;
///频道ID
@property (nonatomic, assign) NSInteger channel_id;
///展示樣式
@property (nonatomic, assign) WSChannelConfig style;
///推荐位圖標
@property (nonatomic, strong) NSString * icon;
///是否顯示更多 0-不顯示 1-顯示
@property (nonatomic, assign) BOOL is_more;

@property (nonatomic, assign) NSInteger default_limit;
///內容類型 1-小說 3-分類 4-运营位 5-每日限免 6-排行榜
@property (nonatomic, assign) NSInteger content_type;

@property (nonatomic, assign) NSInteger cid;

///返回的是不同的對象 需要根據 style 來解析
@property (nonatomic, strong) NSArray * items;

///返回行数
- (NSInteger)row;
///返回cell的类型
- (NSString *)cellClass;
///返回cell的size
- (CGSize)cellSize;
///返回section的inset
- (UIEdgeInsets)inset;

@end

NS_ASSUME_NONNULL_END
